<ion-view view-title="未处理订单列表">
    <ion-content>
        <ion-refresher on-refresh="neworderInit()"
                       pulling-text="下拉刷新..."
                       refreshing-text="拼命加载中..."
                       refreshing-icon="ion-loading-b">

        </ion-refresher>
        <div class="item" style="    padding-top: 5px;padding-bottom: 5px;padding-left: 5px;padding-right: 5px;">
            <h2 class="assertive"><b>您区域内还有{{newordersCount}}件订单未处理</b></h2>
        </div>
        <div ng-if="(newordersArray.length > 0)">
            <div class="item" style="padding-bottom: 5px;padding-top: 5px;padding-right: 5px;padding-left: 5px;font-size: 10px;color: #080808;">
                <table style="width: 100%">
                    <tr>
                        <td style="width: 30%"><b>编号</b></td>
                        <td style="width: 10%"><b>类型</b></td>
                        <td style="width: 10%"><b>状态</b></td>
                        <td style="width: 60%"><b>收货信息</b></td>
                    </tr>
                </table>
            </div>
            <div class="list card" ng-repeat="order in newordersArray" style="margin-top: 5px;margin-bottom: 5px;margin-left: 5px;margin-right: 5px;font-size: 10px;color: #080808;">
                <table style="width: 100%">
                    <tr>
                        <td style="width: 30%">{{order.get('orderid')}}</td>
                        <td style="width: 10%">{{order.get('type')| orderTypeName}}</td>
                        <td style="width: 10%">{{order.get('status')| orderState}}</td>
                        <td style="width: 60%">{{order.get('address').address}}/{{order.get('address').name}}</td>
                    </tr>
                </table>
            </div>
        </div>
    </ion-content>
</ion-view>
